//
//  PlaceEntity.m
//  WHSport
//
//  Created by ccjoy-jimneylee on 15/5/5.
//  Copyright (c) 2015年 jimneylee. All rights reserved.
//

#import "PlaceEntity.h"

@implementation PlaceEntity

- (id)initWithAttributes:(NSDictionary *)attributes {
    self = [super init];
    
    if (self) {
        _ID = attributes[@"id"];
        _distance = attributes[@"distance"];
        _imgPath = attributes[@"bgimgpath"];
        _evaluationCount = attributes[@"evaluationCount"];
        _latitude = attributes[@"latitude"];
        _longitude = attributes[@"longitude"];
        _address = attributes[@"address"];
        _level = attributes[@"level"];
        _name = attributes[@"name"];
        _nowPrice = attributes[@"nowPrice"];
        _originalPrice = attributes[@"originalPrice"];
        _createtime = attributes[@"createtime"];
        _content = attributes[@"content"];
        _loginName = attributes[@"loginName"];
        _charact = attributes[@"characteristic"];
        _introduce = attributes[@"introduce"];
        _pricePlan = attributes[@"pricePlan"];
        _facilities = attributes[@"surroundingfacilities"];
        _telephone = attributes[@"telephone"];
        _day = attributes[@"date"];
        _week = attributes[@"week"];
        _allday = attributes[@"allday"];
    }
    
    return self;
}

@end
